﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using FancyIdea.PingShui.Core.Dal;
using System.Data;

namespace FancyIdea.PingShui.view
{
    public partial class 基本信息打印 : System.Web.UI.Page
    {

        string 纳税人代码 = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                纳税人代码 = Request["纳税人代码"].ToString();
            }
            catch
            { 
            }
            LoadData();
        }

        private void LoadData()
        {
            if (string.IsNullOrEmpty(纳税人代码)) return;
            DataRow row = 基本信息操作.GetBaseInfoRow(纳税人代码);
            if (row != null)
            {
                NSRMC.Text = row["纳税人名称"].ToString();
                FRDB.Text = row["法定代表人"].ToString();
                DFSWDJZ.Text = row["地方税务登记证号码"].ToString();
                DFSWDJZSJ.Text = row["操作时间"].ToString();
                JYDZ.Text = row["街道名称"].ToString() + row["建筑物名称"].ToString();
                DHHM.Text = row["座机号码"].ToString();
                ZYXM.Text = row["经营范围"].ToString();
                SHGLY.Text = row["税收管理员"].ToString();
                SHDE1.Text = row["税收定额"].ToString();
                SHDE2.Text = row["税收定额"].ToString();
                SHDE3.Text = row["税收定额"].ToString();
            }
        }
    }
}